package com.cz.video.website.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cz.video.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 电影表
 * </p>
 *
 * @author 洪圆胜
 * @since 2023-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("website_movie")
@Schema(description="电影表")
public class WebsiteMovie extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "movie_id")
    private Long movieId;

    @Schema(description = "封面")
    private String images;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "类型")
    private String type;

    @Schema(description = "视频id")
    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private String vid;

    @Schema(description = "上传者id")
    private Long uploaderId;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "发布时间")
    private Date publishTime;

    @Schema(description = "审核状态")
    private String auditState;

    @Schema(description = "状态（0发布 1停用）")
    private String status;

    @Schema(description = "删除标志（0代表存在 1代表删除）")
    private String delFlag;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "阅读数")
    private Integer clickCount;

    @Schema(description = "评论数")
    private Integer commentCount;

    @Schema(description = "收藏数")
    private Integer collectionCount;

    @Schema(description = "支持数")
    private Integer supportCount;

    @Schema(description = "分类id")
    private Integer categoryId;

    @Schema(description = "视频总长度")
    private Long totalVideoLength;

}
